package com.yuanzong.wuliu.common.exception;

import com.yuanzong.wuliu.common.vo.ApiResult;

/**
 * 积分不足异常
 */
public class InsufficientPointsException extends RuntimeException {

    /**
     * 错误编号
     */
    private String errorCode;

    /**
     * 错误内容
     */
    private String errorMsg;

    public InsufficientPointsException(String errorMsg) {
        this.errorCode = ApiResult.ERROR;
        this.errorMsg = errorMsg;
    }

    public InsufficientPointsException(String errorCode, String errorMsg) {
        this.errorCode = errorCode;
        this.errorMsg = errorMsg;
    }
}
